import request from '@/utils/http'
import { BaseResult } from '@/types/axios'

export class MaterialService {
  // 获取菜单列表
  static getMenuList(params: object) {
    return request.get<BaseResult>({
      url: '/user/menu/list',
      params
    })
  }
  // 分页获取物料列表
  static getMaterialPage(params: object) {
    return request.get<BaseResult>({
      url: '/user/account_material/page',
      params
    })
  }
  // 同步物料
  static materialSync(params: object) {
    return request.post<BaseResult>({
      url: '/user/account_material/sync',
      data: params
    })
  }
}